package com.cskaoyan.service;

import com.cskaoyan.bean.data.PageData;
import com.cskaoyan.bean.data.GoodsDetailData;
import com.cskaoyan.bean.vo.GoodsCreateVo;
import com.cskaoyan.model.MarketGoods;

import java.util.List;

public interface GoodsService {


    PageData query(int page, int limit, String sort, String order);

    boolean createGoods(GoodsCreateVo goodsCreateVo);


    long count();

    List<MarketGoods> goodsList(boolean isHot, boolean isNew, int page, int limit);

    List floorGoodsList(int categoryLimit, int categoryGoodsLimit);


    GoodsDetailData detail(Integer id, int userId);


    MarketGoods findById(Integer id);

    PageData queryByCategory(Integer categoryId, int page, int related);

    // List<MarketGoods> getCheckGoodsList(List<MarketCart> cartList);

    List<MarketGoods> queryByCartId(Integer cartId);
}
